
#include<iostream>
#include<fstream>
#include"check.h"
#include"string_conversation.h"
#include<Windows.h>
#include<ctime>	
#include<iomanip>


int main(int argc, char** argv){
	std::ios_base::sync_with_stdio(false);
	try{
		unitSignedArrayTest();
		unitTestPrefixes();
		checkingMaxPrefixesCorrectness();
		unitTestsLCS();
		checkingEditorDifference();
		unitCheckEditorPath();
		stressCheckEditorPath();
		streamCheckEditorPath();
		
		if (argc == 1){
			gettingChangesOfTwoFiles("input1.txt" ,"input2.txt", "output.txt",1);
		}
		else if (argc == 4){
			gettingChangesOfTwoFiles(argv[1], argv[2], argv[3], 1);
		}
		else{
			std::cerr << "Usage: exec_file input1 input2 output" << std::endl;
		}
		system("PAUSE");
		return 0;
	}
	catch (const std::exception& ex){
		std::cerr << "Error: " << ex.what() << std::endl;
		system("PAUSE");
		return -1;
	}
	return 0;
}
